package cn.tedu.spring6;

import javax.xml.crypto.Data;

/**
 * 测试简单类型
 */
public class SimpleValueType {
/**
 * public static boolean isSimpleValueType(Class<?> type) {
 *     return (Void.class!= type && void.class!= type &&
 *             (ClassUtils.isPrimitiveOrWrapper(type) ||
 *              Enum.class.isAssignableFrom(type) ||
 *              CharSequence.class.isAssignableFrom(type) ||
 *              Number.class.isAssignableFrom(type) ||
 *              Date.class.isAssignableFrom(type) ||
 *              Temporal.class.isAssignableFrom(type) ||
 *              URI.class == type ||
 *              URL.class == type ||
 *              Locale.class == type ||
 *              Class.class == type));
 * }
 */
private int age;
private Integer age2;

private boolean flag;
private Boolean flag2;

private char ch;
private Character ch2;

private Season season;

private String username;

private Class clazz;

private Data birth;

    @Override
    public String toString() {
        return "SimpleValueType{" +
                "age=" + age +
                ", age2=" + age2 +
                ", flag=" + flag +
                ", flag2=" + flag2 +
                ", ch=" + ch +
                ", ch2=" + ch2 +
                ", season=" + season +
                ", username='" + username + '\'' +
                ", clazz=" + clazz +
                ", birth=" + birth +
                '}';
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void setAge2(Integer age2) {
        this.age2 = age2;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public void setFlag2(Boolean flag2) {
        this.flag2 = flag2;
    }

    public void setCh(char ch) {
        this.ch = ch;
    }

    public void setCh2(Character ch2) {
        this.ch2 = ch2;
    }

    public void setSeason(Season season) {
        this.season = season;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void setClazz(Class clazz) {
        this.clazz = clazz;
    }

    public void setBirth(Data birth) {
        this.birth = birth;
    }
}
